<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:fragment="dataGrid(url,cols)">
    <table id="100"/>
    <script type="text/javascript">
        layui.use(['table'], function () {

        });
    </script>
</div>

</html>